import request from "@/utils/request.js"

const API = {
  SAVE: '/log/product-number',
  DELETE: '/log/product-number',
  UPDATE: '/log/product-number',
  PAGE: '/log/product-number/page',
}

export const reqSave = (param) => request.post(API.SAVE, param)
export const reqDelete = (id) => request.delete(API.DELETE, {params: {id}})
export const reqUpdate = (param) => request.put(API.UPDATE, param)
export const reqPage = (pn, ps, productId) => request.get(API.PAGE, {params: {pn, ps, productId}})
